package com.hbk.controller;

import com.hbk.base.common.CommonResult;
import com.hbk.param.NavigationParam;
import com.hbk.service.INavigationService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/nav")
public class NavigationController {

    @Resource
    private INavigationService navigationService;

    @RequestMapping("/list")
    public CommonResult list(){
        return navigationService.list();
    }

    @RequestMapping("/modify")
    public CommonResult modify(NavigationParam.ModifyParam param){
        return navigationService.modify(param);
    }
}
